﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleList.aspx.cs" Inherits="Whir_System_Module_Role_RoleList" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E2E0E0">
            <tr>
                <td height="26" align="center" class="grid_Title" width="15%">用户组名称</td>
                <td width="55%" align="center" class="grid_Title">用户组描述</td>
                <td width="20%" align="center" class="grid_Title">更新时间</td>
                <td width="10%" align="center" class="grid_Title">管理操作</td>
            </tr>
            <asp:Repeater ID="rRole" runat="server">
                <ItemTemplate>
                    <tr>
                        <td height="22" align="center" bgcolor="#FFFFFF">
                            <%# Eval("roleName") %>
                        </td>
                        <td align="center" bgcolor="#FFFFFF">
                            <%# Eval("roleDesc")%>
                        </td>
                        <td align="center" bgcolor="#FFFFFF">
                            <%# Eval("updateDate") %>
                        </td>
                        <td align="center" bgcolor="#FFFFFF"><a href="ColumnRole.aspx?id=<%# Eval("roleID") %>"
                            title="权限修改">
                            <img src="../../image/CommonImage/roleedit.gif" style="border: 0px;" /></a>&nbsp;<a
                                href="AddRole.aspx?id=<%# Eval("roleID") %>" title="用户组修改">
                                <img src="../../image/CommonImage/eip_edit.gif" style="border: 0px;" /></a>&nbsp;
                            <asp:LinkButton ID="lbnDelete" runat="server" CommandArgument='<%# Eval("roleID") %>'
                                OnClick="btnDelete_Click" OnClientClick="return confirm('确定要删除吗？一旦删除将不可恢复！');"
                                ToolTip="用户组删除"><img src="../../image/CommonImage/eip_deleted.gif" style="border:0px;"/></asp:LinkButton></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </form>
</body>
</html>
